package com.tju.resource.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tju.resource.model.SysRole;
import com.tju.resource.tool.tool.ClientParameters;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    IPage<SysRole> getCharacterAll(Page<SysRole> page, @Param("pa") ClientParameters parameter);

    Integer addCharacter(@Param("pa") SysRole sysRole);

    List<SysRole> byUser(@Param("username") String username);

}